AC_INIT([librob], [0.1.0], [Frederik.Sdun@gmail.com], [rob])
AC_CONFIG_SRCDIR([src/Makefile.am])
AC_CONFIG_HEADERS(src/config.h)
AM_INIT_AUTOMAKE([dist-bzip2])
AM_MAINTAINER_MODE

AC_PROG_CC
AM_PROG_CC_C_O
AC_DISABLE_STATIC
AC_PROG_LIBTOOL

AC_PATH_PROG(VALAC, valac, valac)
AC_SUBST(VALAC)



#AH_TEMPLATE([GETTEXT_PACKAGE], [Package name for gettext])
#GETTEXT_PACKAGE=librob-1.0
#AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
#AC_SUBST(GETTEXT_PACKAGE)
AM_GLIB_GNU_GETTEXT

AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

GLIB_REQUIRED=2.12.0

PKG_CHECK_MODULES(LIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gmodule-2.0 dbus-glib-1 )
AC_SUBST(LIB_CFLAGS)
AC_SUBST(LIB_LIBS)

AC_CONFIG_FILES([Makefile
                 src/Makefile])

AC_OUTPUT([librob-1.0.pc
           data/baserules.conf.in
])
